{extend name='admin@public/content'}

{block name="button"}
<!--{if auth("$classuri/add")}-->
<!--<button data-modal='{:url("@$classuri/add")}' data-title="添加等级" class='layui-btn layui-btn-sm layui-btn-primary'>添加等级</button>-->
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<!--{/if}-->
{/block}

{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

<!--    <div class="layui-form-item layui-inline">-->
<!--        <label class="layui-form-label">订单号</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <input name="order_no" value="{$Think.get.order_no|default=''}" placeholder="订单编号" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">时间</label>
        <div class="layui-input-inline">
            <input name="create_at" id='range-date' value="{$Think.get.create_at|default=''}"
                   placeholder="请选择时间" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>

</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<form autocomplete="off" onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <!--<th class='list-table-check-td think-checkbox'>-->
                <!--<input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'>-->
            <!--</th>-->
            <th class='text-left nowrap'>ID</th>
            <th class='text-left nowrap'>用户昵称</th>
            <th class='text-left nowrap'>用户手机号</th>
            <th class='text-left nowrap'>提币数量</th>
            <th class='text-left nowrap'>提币地址</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>手续费</th>
            <th class='text-left nowrap'>时间</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.id}</span>
            </td>
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.userinfo.nickname|default='暂无用户昵称'}</span>
            </td>
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.userinfo.phone|default='暂无手机号'}</span>
            </td>
            <td class='text-left nowrap'>
                {$vo.num*1}
            </td>
            <td class='text-left nowrap'>
                {$vo.submit_link}
            </td>
            <td class='text-left nowrap'>
                {if condition="$vo.status eq 0"}待处理{else/}已处理{/if}
            </td>
            <td class='text-left nowrap'>
                {$vo.total_fee}
            </td>
            <td class='text-left nowrap'>
                {$vo.create_at|date="Y-m-d H:i:s"}
            </td>
            <td class='text-left nowrap'>
                {if condition="$vo.status eq 0"}<a data-update="{$vo.id}" data-action="{:url('updatestatus')}">确认已处理</a>{else/}已处理{/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}